Fix xm block-configure, by allowing the device ID to be unspecified inside
authorEwan Mellor <ewan@xensource.com>
Tue, 14 Nov 2006 18:52:58 +0000 (18:52 +0000)
committerEwan Mellor <ewan@xensource.com>
Tue, 14 Nov 2006 18:52:58 +0000 (18:52 +0000)
device_configure (in which case it will be specified by the incoming config).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 6bfa401bb7868aaa044708c84dfd80a4cd2bc00f..80d18f06cf16c829ea5c226c19fd183ecae10fc4 100644 (file)
@@ -520,7 +520,7 @@ class XendDomainInfo:
         self._waitForDevice(dev_type, devid)
         return self.getDeviceController(dev_type).sxpr(devid)
 
-    def device_configure(self, dev_config, devid):
+    def device_configure(self, dev_config, devid = None):
         """Configure an existing device.
         
         @param dev_config: device configuration